"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function sum(x, y) {
    return x + y;
}
var sum2 = function (x, y) {
    return x + y;
};
function fn1(x, y) {
    console.log('fn1()', x, y);
}
fn1(2);
fn2(2, 3);
function fn2(x, y) {
    if (y === void 0) { y = 0; }
    console.log('fn2()', x, y);
}
fn2(1);
fn2(1, 2);
function push(arr) {
    var items = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        items[_i - 1] = arguments[_i];
    }
    arr.push.apply(arr, items);
    return arr;
}
console.log(push([1, 3], 5, 7, 9));
